package com.wing.purchase.model.response;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.wing.purchase.model.entity.ReplenishmentOrder;

/**
 * 补货订单表VO
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class ReplenishmentOrderVO {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime createTime;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 补货订单编号
     */
    private String code;

    /**
     * 柜子编号
     */
    private String cabCode;


    /**
     * 状态
     */
    private ReplenishmentOrder.Status status;

    /**
    * 状态描述
    */
    @TableField(exist = false)
    private String statusDesc;

    public String getStatusDesc() {
        return status.getDesc();
    }

    /**
     * 企业编号
     */
    private String enterpriseCode;
    private Integer no;
    private Integer day;

    private Long alarmStock;

    private Integer skuCount;
    /**
     * 订单金额
     */
    private BigDecimal totalAmount;
}
